Optimal. Leaf size=99 \[ \frac {5 A x}{16 a^3 c^3}+\frac {5 A \cos (e+f x) \sin (e+f x)}{16 a^3 c^3 f}+\frac {5 A \cos ^3(e+f x) \sin (e+f x)}{24 a^3 c^3 f}-\frac {\cos ^6(e+f x) (B-A \tan (e+f x))}{6 a^3 c^3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 99, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 41, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.122, Rules used = {3669, 74, 653,
205, 211} \begin {gather*} -\frac {\cos ^6(e+f x) (B-A \tan (e+f x))}{6 a^3 c^3 f}+\frac {5 A \sin (e+f x) \cos ^3(e+f x)}{24 a^3 c^3 f}+\frac {5 A \sin (e+f x) \cos (e+f x)}{16 a^3 c^3 f}+\frac {5 A x}{16 a^3 c^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 74
Rule 205
Rule 211
Rule 653
Rule 3669
Rubi steps
\begin {align*} \int \frac {A+B \tan (e+f x)}{(a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3} \, dx &=\frac {(a c) \text {Subst}\left (\int \frac {A+B x}{(a+i a x)^4 (c-i c x)^4} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {(a c) \text {Subst}\left (\int \frac {A+B x}{\left (a c+a c x^2\right )^4} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac {\cos ^6(e+f x) (B-A \tan (e+f x))}{6 a^3 c^3 f}+\frac {(5 A) \text {Subst}\left (\int \frac {1}{\left (a c+a c x^2\right )^3} \, dx,x,\tan (e+f x)\right )}{6 f}\\ &=\frac {5 A \cos ^3(e+f x) \sin (e+f x)}{24 a^3 c^3 f}-\frac {\cos ^6(e+f x) (B-A \tan (e+f x))}{6 a^3 c^3 f}+\frac {(5 A) \text {Subst}\left (\int \frac {1}{\left (a c+a c x^2\right )^2} \, dx,x,\tan (e+f x)\right )}{8 a c f}\\ &=\frac {5 A \cos (e+f x) \sin (e+f x)}{16 a^3 c^3 f}+\frac {5 A \cos ^3(e+f x) \sin (e+f x)}{24 a^3 c^3 f}-\frac {\cos ^6(e+f x) (B-A \tan (e+f x))}{6 a^3 c^3 f}+\frac {(5 A) \text {Subst}\left (\int \frac {1}{a c+a c x^2} \, dx,x,\tan (e+f x)\right )}{16 a^2 c^2 f}\\ &=\frac {5 A x}{16 a^3 c^3}+\frac {5 A \cos (e+f x) \sin (e+f x)}{16 a^3 c^3 f}+\frac {5 A \cos ^3(e+f x) \sin (e+f x)}{24 a^3 c^3 f}-\frac {\cos ^6(e+f x) (B-A \tan (e+f x))}{6 a^3 c^3 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 63, normalized size = 0.64 \begin {gather*} \frac {-32 B \cos ^6(e+f x)+A (60 e+60 f x+45 \sin (2 (e+f x))+9 \sin (4 (e+f x))+\sin (6 (e+f x)))}{192 a^3 c^3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.24, size = 166, normalized size = 1.68
method | result | size |
risch | \(\frac {5 A x}{16 a^{3} c^{3}}-\frac {B \cos \left (6 f x +6 e \right )}{192 f \,c^{3} a^{3}}+\frac {A \sin \left (6 f x +6 e \right )}{192 f \,c^{3} a^{3}}-\frac {B \cos \left (4 f x +4 e \right )}{32 f \,c^{3} a^{3}}+\frac {3 A \sin \left (4 f x +4 e \right )}{64 f \,c^{3} a^{3}}-\frac {5 B \cos \left (2 f x +2 e \right )}{64 f \,c^{3} a^{3}}+\frac {15 A \sin \left (2 f x +2 e \right )}{64 f \,c^{3} a^{3}}\) | \(138\) |
norman | \(\frac {\frac {5 A x}{16 a c}-\frac {B}{6 a c f}+\frac {11 A \tan \left (f x +e \right )}{16 a c f}+\frac {5 A \left (\tan ^{3}\left (f x +e \right )\right )}{6 a c f}+\frac {5 A \left (\tan ^{5}\left (f x +e \right )\right )}{16 a c f}+\frac {15 A x \left (\tan ^{2}\left (f x +e \right )\right )}{16 a c}+\frac {15 A x \left (\tan ^{4}\left (f x +e \right )\right )}{16 a c}+\frac {5 A x \left (\tan ^{6}\left (f x +e \right )\right )}{16 a c}}{\left (1+\tan ^{2}\left (f x +e \right )\right )^{3} a^{2} c^{2}}\) | \(155\) |
derivativedivides | \(\frac {\frac {5 i A \ln \left (i+\tan \left (f x +e \right )\right )}{32}-\frac {-\frac {5 A}{32}+\frac {i B}{32}}{i+\tan \left (f x +e \right )}-\frac {\frac {A}{16}-\frac {i B}{16}}{3 \left (i+\tan \left (f x +e \right )\right )^{3}}-\frac {-\frac {B}{16}-\frac {i A}{8}}{2 \left (i+\tan \left (f x +e \right )\right )^{2}}-\frac {5 i A \ln \left (-i+\tan \left (f x +e \right )\right )}{32}-\frac {-\frac {5 A}{32}-\frac {i B}{32}}{-i+\tan \left (f x +e \right )}-\frac {\frac {A}{16}+\frac {i B}{16}}{3 \left (-i+\tan \left (f x +e \right )\right )^{3}}-\frac {-\frac {B}{16}+\frac {i A}{8}}{2 \left (-i+\tan \left (f x +e \right )\right )^{2}}}{f \,a^{3} c^{3}}\) | \(166\) |
default | \(\frac {\frac {5 i A \ln \left (i+\tan \left (f x +e \right )\right )}{32}-\frac {-\frac {5 A}{32}+\frac {i B}{32}}{i+\tan \left (f x +e \right )}-\frac {\frac {A}{16}-\frac {i B}{16}}{3 \left (i+\tan \left (f x +e \right )\right )^{3}}-\frac {-\frac {B}{16}-\frac {i A}{8}}{2 \left (i+\tan \left (f x +e \right )\right )^{2}}-\frac {5 i A \ln \left (-i+\tan \left (f x +e \right )\right )}{32}-\frac {-\frac {5 A}{32}-\frac {i B}{32}}{-i+\tan \left (f x +e \right )}-\frac {\frac {A}{16}+\frac {i B}{16}}{3 \left (-i+\tan \left (f x +e \right )\right )^{3}}-\frac {-\frac {B}{16}+\frac {i A}{8}}{2 \left (-i+\tan \left (f x +e \right )\right )^{2}}}{f \,a^{3} c^{3}}\) | \(166\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 6.85, size = 133, normalized size = 1.34 \begin {gather*} \frac {{\left (120 \, A f x e^{\left (6 i \, f x + 6 i \, e\right )} + {\left (-i \, A - B\right )} e^{\left (12 i \, f x + 12 i \, e\right )} - 3 \, {\left (3 i \, A + 2 \, B\right )} e^{\left (10 i \, f x + 10 i \, e\right )} - 15 \, {\left (3 i \, A + B\right )} e^{\left (8 i \, f x + 8 i \, e\right )} - 15 \, {\left (-3 i \, A + B\right )} e^{\left (4 i \, f x + 4 i \, e\right )} - 3 \, {\left (-3 i \, A + 2 \, B\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + i \, A - B\right )} e^{\left (-6 i \, f x - 6 i \, e\right )}}{384 \, a^{3} c^{3} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.60, size = 508, normalized size = 5.13 \begin {gather*} \frac {5 A x}{16 a^{3} c^{3}} + \begin {cases} \frac {\left (\left (103079215104 i A a^{15} c^{15} f^{5} e^{6 i e} - 103079215104 B a^{15} c^{15} f^{5} e^{6 i e}\right ) e^{- 6 i f x} + \left (927712935936 i A a^{15} c^{15} f^{5} e^{8 i e} - 618475290624 B a^{15} c^{15} f^{5} e^{8 i e}\right ) e^{- 4 i f x} + \left (4638564679680 i A a^{15} c^{15} f^{5} e^{10 i e} - 1546188226560 B a^{15} c^{15} f^{5} e^{10 i e}\right ) e^{- 2 i f x} + \left (- 4638564679680 i A a^{15} c^{15} f^{5} e^{14 i e} - 1546188226560 B a^{15} c^{15} f^{5} e^{14 i e}\right ) e^{2 i f x} + \left (- 927712935936 i A a^{15} c^{15} f^{5} e^{16 i e} - 618475290624 B a^{15} c^{15} f^{5} e^{16 i e}\right ) e^{4 i f x} + \left (- 103079215104 i A a^{15} c^{15} f^{5} e^{18 i e} - 103079215104 B a^{15} c^{15} f^{5} e^{18 i e}\right ) e^{6 i f x}\right ) e^{- 12 i e}}{39582418599936 a^{18} c^{18} f^{6}} & \text {for}\: a^{18} c^{18} f^{6} e^{12 i e} \neq 0 \\x \left (- \frac {5 A}{16 a^{3} c^{3}} + \frac {\left (A e^{12 i e} + 6 A e^{10 i e} + 15 A e^{8 i e} + 20 A e^{6 i e} + 15 A e^{4 i e} + 6 A e^{2 i e} + A - i B e^{12 i e} - 4 i B e^{10 i e} - 5 i B e^{8 i e} + 5 i B e^{4 i e} + 4 i B e^{2 i e} + i B\right ) e^{- 6 i e}}{64 a^{3} c^{3}}\right ) & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.90, size = 79, normalized size = 0.80 \begin {gather*} \frac {\frac {15 \, {\left (f x + e\right )} A}{a^{3} c^{3}} + \frac {15 \, A \tan \left (f x + e\right )^{5} + 40 \, A \tan \left (f x + e\right )^{3} + 33 \, A \tan \left (f x + e\right ) - 8 \, B}{{\left (\tan \left (f x + e\right )^{2} + 1\right )}^{3} a^{3} c^{3}}}{48 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.72, size = 64, normalized size = 0.65 \begin {gather*} \frac {5\,A\,x}{16\,a^3\,c^3}+\frac {{\cos \left (e+f\,x\right )}^6\,\left (\frac {5\,A\,{\mathrm {tan}\left (e+f\,x\right )}^5}{16}+\frac {5\,A\,{\mathrm {tan}\left (e+f\,x\right )}^3}{6}+\frac {11\,A\,\mathrm {tan}\left (e+f\,x\right )}{16}-\frac {B}{6}\right )}{a^3\,c^3\,f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________